Skip to content

Fix Create elevator clipping on Sable sublevels - #1446

Open
VictorioMo wants to merge 1 commit into
ryanhcode:mainfrom
VictorioMo:fix_create_elevator_clipping_on_sable_sublevels
Open

Fix Create elevator clipping on Sable sublevels#1446
VictorioMo wants to merge 1 commit into
ryanhcode:mainfrom
VictorioMo:fix_create_elevator_clipping_on_sable_sublevels

Conversation

@VictorioMo

Copy link
Copy Markdown

This PR fixes Create elevator player clipping/teleportation on Sable sublevels.

The issue appears to come from ContraptionCollider.savePlayerFromClipping() mixing global player coordinates with sublevel/contraption coordinates. This could cause the player's Y position to be set roughly 100–200 blocks above the elevator.

The fix converts the relevant contraption Y and anti-clipping raytrace coordinates between Sable sublevel space and global space.

Fixes #1304
Related to #673 and #1297

Test video: https://youtu.be/cQeV1smUpY0

I tested the fix after reloading the world and after assembling a new elevator, and could no longer reproduce the teleport. Other scenarios have not yet been tested.

@CLAassistant

CLAassistant commented Aug 7, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Standing on a moving Create elevator inside a Sable sub-level desyncs the player

2 participants